set( LINUX_SOURCES
  ../ComApplicationHealthResult.cpp
  ../ComApplicationUpgradeProgressResult.cpp
  ../ComClientSettingsResult.cpp
  ../ComClusterHealthResult.cpp
  ../ComDataLossHandler.cpp
  ../ComComposeDeploymentUpgradeProgressResult.cpp
  ../ComDeployedApplicationHealthResult.cpp
  ../ComDeployedServicePackageHealthResult.cpp
  ../ComEnumeratePropertiesResult.cpp
  ../ComEseLocalStoreSettingsResult.cpp
  ../ComFabricChaosEventsSegmentResult.cpp
  ../ComFabricChaosReportResult.cpp
  ../ComFabricClient.cpp
  ../ComFabricClientConnection.cpp
  ../ComFabricClientFASResource.cpp
  ../ComFabricInvokeDataLossProgressResult.cpp
  ../ComFabricInvokeQuorumLossProgressResult.cpp
  ../ComFabricMovePrimaryResult.cpp
  ../ComFabricMoveSecondaryResult.cpp
  ../ComFabricNodeTransitionProgressResult.cpp
  ../ComFabricOrchestrationUpgradeStatusResult.cpp
  ../ComFabricRestartDeployedCodePackageResult.cpp
  ../ComFabricRestartNodeResult.cpp
  ../ComFabricRestartPartitionProgressResult.cpp
  ../ComFabricSendRequestAsyncOperation.cpp
  ../ComFabricServiceCommunicationListener.cpp
  ../ComFabricServiceCommunicationListenerFactory.cpp
  ../ComFabricStartNodeResult.cpp
  ../ComFabricStopNodeResult.cpp
  ../ComFabricUpgradeProgressResult.cpp
  ../ComFabricUpgradeOrchestrationServiceStateResult.cpp
  ../ComFaultAnalysisServiceAgent.cpp
  ../ComFaultAnalysisServiceAgentFactory.cpp
  ../ComGatewayInformationResult.cpp
  ../ComGetAclResult.cpp
  ../ComGetApplicationListResult.cpp
  ../ComGetApplicationLoadInformationResult.cpp
  ../ComGetApplicationNameResult.cpp
  ../ComGetApplicationNetworkListResult.cpp
  ../ComGetApplicationTypeListResult.cpp
  ../ComGetApplicationTypePagedListResult.cpp
  ../ComGetClusterHealthChunkResult.cpp
  ../ComGetClusterLoadInformationResult.cpp
  ../ComGetDeployedApplicationListResult.cpp
  ../ComGetDeployedApplicationPagedListResult.cpp
  ../ComGetDeployedCodePackageListResult.cpp
  ../ComGetDeployedNetworkCodePackageListResult.cpp
  ../ComGetDeployedNetworkListResult.cpp
  ../ComGetDeployedReplicaListResult.cpp
  ../ComGetDeployedServiceManifestListResult.cpp
  ../ComGetDeployedServiceReplicaDetailResult.cpp
  ../ComGetDeployedServiceTypeListResult.cpp
  ../ComGetComposeDeploymentStatusListResult.cpp
  ../ComGetNetworkListResult.cpp
  ../ComGetNetworkApplicationListResult.cpp
  ../ComGetNetworkNodeListResult.cpp
  ../ComGetNodeListResult.cpp
  ../ComGetNodeLoadInformationResult.cpp
  ../ComGetPartitionListResult.cpp
  ../ComGetPartitionLoadInformationResult.cpp
  ../ComGetProvisionedFabricCodeVersionListResult.cpp
  ../ComGetProvisionedFabricConfigVersionListResult.cpp
  ../ComGetRepairListResult.cpp
  ../ComGetReplicaListResult.cpp
  ../ComGetReplicaLoadInformationResult.cpp
  ../ComGetReplicatorStatusResult.cpp
  ../ComGetRollingUpgradeMonitoringPolicyResult.cpp
  ../ComGetServiceGroupMemberListResult.cpp
  ../ComGetServiceGroupMemberTypeListResult.cpp
  ../ComGetServiceListResult.cpp
  ../ComGetServiceNameResult.cpp
  ../ComGetServiceTypeListResult.cpp
  ../ComGetTestCommandStatusResult.cpp
  ../ComGetUnplacedReplicaInformationResult.cpp
  ../ComInfrastructureServiceAgent.cpp
  ../ComInfrastructureServiceAgentFactory.cpp
  ../ComKeyValueStoreEnumerator.cpp
  ../ComKeyValueStoreItemEnumerator.cpp
  ../ComKeyValueStoreItemMetadataEnumerator.cpp
  ../ComKeyValueStoreItemMetadataResult.cpp
  ../ComKeyValueStoreItemResult.cpp
  ../ComKeyValueStoreNotification.cpp
  ../ComKeyValueStoreNotificationEnumerator.cpp
  ../ComKeyValueStoreReplica.cpp
  ../ComKeyValueStoreReplicaFactory.cpp
  ../ComKeyValueStoreReplicaSettingsResult.cpp
  ../ComKeyValueStoreReplicaSettings_V2Result.cpp
  ../ComSharedLogSettingsResult.cpp
  ../ComNameEnumerationResult.cpp
  ../ComNamedProperty.cpp
  ../ComNamedPropertyMetadata.cpp
  ../ComNativeImageStoreClient.cpp
  ../ComNodeHealthResult.cpp
  ../ComPartitionHealthResult.cpp
  ../ComPropertyBatchResult.cpp
  ../ComProxyClientConnectionEventHandler.cpp
  ../ComProxyFaultAnalysisService.cpp
  ../ComProxyInfrastructureService.cpp
  ../ComProxyNativeImageStoreProgressEventHandler.cpp
  ../ComProxySecondaryEventHandler.cpp
  ../ComProxyServiceCommunicationMessageHandler.cpp
  ../ComProxyServiceConnectionEventHandler.cpp
  ../ComProxyServiceConnectionHandler.cpp
  ../ComProxyServiceNotificationEventHandler.cpp
  ../ComProxyStatelessServiceFactory.cpp
  ../ComProxyStoreEventHandler.cpp
  ../ComProxyStorePostBackupHandler.cpp
  ../ComProxyTokenValidationService.cpp
  ../ComProxyContainerActivatorService.cpp
  ../ComProxyTransaction.cpp
  ../ComProxyTransactionBase.cpp
  ../ComQueryResult.cpp
  ../ComReplicaHealthResult.cpp
  ../ComResolvedServicePartitionResult.cpp
  ../ComServiceDescriptionResult.cpp
  ../ComServiceEndpointsVersion.cpp
  ../ComServiceGroupDescriptionResult.cpp
  ../ComServiceHealthResult.cpp
  ../ComServiceNotification.cpp
  ../ComStateProvider.cpp
  ../ComStatefulServiceFactory.cpp
  ../ComStatefulServiceReplica.cpp
  ../ComStatefulServiceReplicaStatusResult.cpp
  ../ComStatefulServiceReplicaStatusResult.cpp
  ../ComStatelessServiceFactory.cpp
  ../ComStatelessServiceInstance.cpp
  ../ComStoreEventHandler.cpp
  ../ComStoreItemEnumerator.cpp
  ../ComStoreItemMetadataEnumerator.cpp
  ../ComStringMapResult.cpp
  ../ComTokenValidationServiceAgent.cpp
  ../ComContainerActivatorServiceAgent.cpp
  ../ComTokenValidationServiceAgentFactory.cpp
  ../ComTransaction.cpp
  ../ComTransactionBase.cpp
  ../Constants.cpp
  ../LocationChangeCallbackAdapter.cpp
  ../comfabricservicecommunicationclient.cpp
  ../comfabricservicecommunicationclientfactory.cpp
  ../comfabricservicecommunicationmessage.cpp
  ../ComFabricTransportSendRequestAsyncOperation.cpp
  ../ComFabricTransportOpenAsyncOperation.cpp
  ../ComFabricTransportCloseAsyncOperation.cpp
  ../ComFabricTransportMessage.cpp
  ../ComFabricTransportClient.cpp
  ../ComProxyFabricTransportMessageHandler.cpp
  ../ComFabricTransportListener.cpp
  ../ComFabricTransportListenerFactory.cpp
  ../ComProxyFabricTransportCallbackMessageHandler.cpp
  ../ComFabricTransportClientFactory.cpp
  ../ComProxyFabricTransportConnectionHandler.cpp
  ../ComProxyFabricTransportClientEventHandler.cpp
  ../ComFabricTransportClientConnection.cpp
  ../ComFabricChaosDescriptionResult.cpp
  ../ComFabricChaosScheduleDescriptionResult.cpp
  ../ComGatewayResourceManagerAgent.cpp
  ../ComGatewayResourceManagerAgentFactory.cpp
  ../ComProxyGatewayResourceManager.cpp
)

include_directories("..")

add_library(objects_ApiWrappers OBJECT ${LINUX_SOURCES})
add_precompiled_header(objects_ApiWrappers ../stdafx.h)
add_library(${lib_ApiWrappers} STATIC $<TARGET_OBJECTS:objects_ApiWrappers>)

set_target_properties(${lib_ApiWrappers} PROPERTIES
    ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_DIR})

